home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7469 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: dnaco.net!root
  2. From: renegade@dnaco.net (Renegade)
  3. Newsgroups: comp.networks,comp.os.linux.networking,comp.os.ms-windows.networking,comp.os.ms-windows.programmer.networks,comp.lang.c,comp.lang.c++
  4. Subject: Help:  CRC calculation for arbitrary generator polynomial
  5. Date: Fri, 23 Feb 1996 16:03:00 GMT
  6. Organization: The Dayton Network Access Company (DNACo)
  7. Message-ID: <4gke26$57k@sisko.dnaco.net>
  8. Reply-To: renegade@dnaco.net
  9. NNTP-Posting-Host: @odo.dnaco.net
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. Greetings,
  13.  
  14.     I am trying to do some simulations on CRC codes.  I have found several
  15. sources that have code for generating CRC's.  The only problem is that
  16. these algorithms are based on 16 or 32 bit CRC's and table lookups.  I
  17. would like to be able to use a 4 or 8 bit CRC.  I have not
  18. been able to successfully figure out how to convert these algorithms
  19. to an arbitrary length CRC.  The tables (XOR's with the generator and
  20. all possible one byte data characters) are used for efficiency.  I'm
  21. not so concerned about speed.  I just want to be able to change the 
  22. CRC generator polynomial.  I can run my simualtions overnight so the 
  23. time wasted using bit shifts to compute the CRC the way hardware does
  24. is ok.
  25.  
  26. If you can help please e-mail me at  RENEGADE@DNACO.NET
  27.  
  28. If anyone using Linux is interested in scripts to connect to the 
  29. Internet via PPP also let me know.  I have developed perl
  30. scripts to make a PPP connection to the Internet.  These
  31. scripts will re-dial if the line is busy, and can handle dynamic IP
  32. addressing.
  33.  
  34.     Thanks in advance,
  35.     Dave Hoeferlin
  36.     Renegade@dnaco.net
  37.  
  38.  
  39.